﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RetrievePassword.ascx.cs" Inherits="UserControl_RetrievePassword" %>

<asp:MultiView ID="MultiView1" runat="server">
    <asp:View ID="View1" runat="server">
        <table>
            <tr>
                <td>
                    Username</td>
                <td>
                    <asp:TextBox ID="txtUsername" runat="server" CssClass="required" MaxLength="20" minlength="5"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Email</td>
                <td>
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="required email"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Literal ID="ltrmsg" runat="server"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:LinkButton ID="lbtnRetrieve" runat="server" Text="Retrieve" 
                        onclick="lbtnRetrieve_Click"></asp:LinkButton>
                </td>
                <td style="text-align: right">
                    <a href="#">Back home page</a></td>
            </tr>
        </table>
    </asp:View>
    <asp:View ID="View2" runat="server">
        <table>
            <tr>
                <td>Code</td>
                <td><%=Session["OldPassword"]%></td>
            </tr>
            <tr>
                <td colspan="2" ><strong>Warning:</strong> Copy code to change password</td>
            </tr>
            <tr>
                <td><asp:LinkButton runat="server" ID="lbtntochangepwpage" 
                        onclick="lbtntochangepwpage_Click" Text="Go to change password page"></asp:LinkButton></td>
            </tr>
        </table>
    </asp:View>
        <asp:View ID="View3" runat="server">
        <table>
            <tr>
                <td>Code</td>
                <td><asp:TextBox runat="server" ID="txtCode" CssClass="required"></asp:TextBox></td>
            </tr>
            <tr>
                <td>New password</td>
                <td><asp:TextBox runat="server" TextMode="Password" CssClass="required" ID="txtNewPassword"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="2"><asp:Literal runat="server" ID="msg2"></asp:Literal></td>
            </tr>
            <tr>
                <td><asp:LinkButton runat="server" Text="Submit" ID="btnSubmit" 
                        onclick="btnSubmit_Click"></asp:LinkButton></td>
            </tr>
        </table>
    </asp:View>
    <asp:View ID="View4" runat="server">
        <h2>Change password successfully!</h2>
    </asp:View>
</asp:MultiView>


